package test1231;

public class MemberA extends Father {

    int salary;

    public MemberA() {
    }

    public MemberA(String name) {
        this.name = name;
    }

    public MemberA(String name, int salary) {
        this.name = name;
        this.salary = salary;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "MemberA{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }

    @Override
    public double m() {
        return salary;
    }
}